<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get the value of an attribute by localname and URI</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xmlreader.getattributeno.html">XMLReader::getAttributeNo</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xmlreader.getparserproperty.html">XMLReader::getParserProperty</a></div>
 <div class="up"><a href="class.xmlreader.html">XMLReader</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="xmlreader.getattributens" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XMLReader::getAttributeNs</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0)</p><p class="refpurpose"><span class="refname">XMLReader::getAttributeNs</span> &mdash; <span class="dc-title">Get the value of an attribute by localname and URI</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-xmlreader.getattributens-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>XMLReader::getAttributeNs</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$localName</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespaceURI</code></span>
   )</div>

  <p class="para rdfs-comment">
   Returns the value of an attribute by name and namespace URI or an empty 
   string if attribute does not exist or not positioned on an element node.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-xmlreader.getattributens-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">localName</code></em></dt>

     <dd>

      <p class="para">
       The local name.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">namespaceURI</code></em></dt>

     <dd>

      <p class="para">
       The namespace URI.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-xmlreader.getattributens-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The value of the attribute, or an empty string if no attribute with the
   given <em><code class="parameter">localName</code></em> and 
   <em><code class="parameter">namespaceURI</code></em> is found or not positioned of element.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-xmlreader.getattributens-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="xmlreader.getattribute.html" class="methodname" rel="rdfs-seeAlso">XMLReader::getAttribute()</a> - Get the value of a named attribute</span></li>
    <li class="member"><span class="methodname"><a href="xmlreader.getattributeno.html" class="methodname" rel="rdfs-seeAlso">XMLReader::getAttributeNo()</a> - Get the value of an attribute by index</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="xmlreader.getattributeno.html">XMLReader::getAttributeNo</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="xmlreader.getparserproperty.html">XMLReader::getParserProperty</a></div>
 <div class="up"><a href="class.xmlreader.html">XMLReader</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
